package com.prb.tomcat.container;

import com.prb.tomcat.protocol.IServlet;

import java.util.HashMap;
import java.util.Map;

public class Context {


    private static Map<String , IServlet> servlets = new HashMap<>();


    public IServlet getServlet(String path){

        return servlets.get(path);
    }

    public void setServletHandler(String path , IServlet servlet){

        servlets.put(path , servlet);
    }

}
